package pshycomanagement

class ProjectController {

    def index() {redirect action:list }
    //def beforeInterceptor = [action:this.&auth] // Solo quiten el comentario a esta linea para activar seguridad

    def scaffold=Project
    
    def auth() {
        if(!session.user) {
            redirect(controller:"Security", action:"login")
            return false
        }
    }
}
